<script type="text/javascript">
// 设为首页
function setHome(self) {
    var _url = window.location.href;
    if (document.all) {
        self.style.behavior='url(#default#homepage)';
        self.setHomePage(_url);
    } else {
        alert('请自行设置首页，谢谢！');
    }
    return false;
}
// 添加收藏
function addFavorite() {
    var _url = document.URL,
        _title = document.title;  
    if (document.all) {
        alert('您的IE版本不支持，请按Ctrl+D键收藏本页！');
    } else {
        window.sidebar.addPanel(_title, _url, ""); 
    }
    return false;
}
</script>
<div class="Topline">
    <div class="box">
        <span class="_1"><a href="#" onclick="setHome(this);">设为首页</a><a href="{APP_PATH}index.php?m=content&c=rss&siteid=1">订阅本站</a><a href="/index.php?m=search">高级搜索</a></span>
    </div>
</div>
<div class="Header">
    <div class="banner">
        <img src="{IMG_PATH}web/banner.jpg" width="1004" height="280" />
    </div>
    <div class="menu">
        <ul>
        {pc:content action="category" catid="0" num="10" siteid="$siteid" order="listorder ASC"}
            <li><a href="{siteurl($siteid)}/index.php">首 页</a></li>
            {loop $data $r}
            <li>|</li>
            <li{if $r['catid']==6} class="details"{/if}><a href="{$r[url]}">{$r[catname]}</a></li>
            {/loop}
        {php echo runhook('glogal_menu')}
        {/pc}
        </ul>
    </div>
</div>
